"use strict";
cc._RF.push(module, 'b254d+2oMRK7asoEyt2jgOo', 'GameOver');
// scripts/GameOver.js

'use strict';

// Learn cc.Class:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] http://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/creator/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        againButton: {
            default: null,
            type: cc.Button
        }
    },
    onLoad: function onLoad() {
        this.againButton.node.on(cc.Node.EventType.TOUCH_START, function (event) {
            cc.director.loadScene('game');
        }, this);
    }

});

cc._RF.pop();